package org.ytu.classifier.kmeans;

import java.util.Arrays;

public class Centroid {
   private double[] features;

   public Centroid(int size) {
      this.features = new double[size];
   }

   public double[] getFeatures() {
      return features;
   }

   public void setFeatures(double[] features) {
      this.features = features;
   }

   @Override
   public int hashCode() {
      return features != null ? Arrays.hashCode(features) : 0;
   }
}
